﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="UTF-8">
	<title>{$name}┊{$site_name}</title>
    <meta http-equiv="Content-Language" content="ar-AE">
    <meta name="author" content="Powerless"> 
    <meta name="Copyright" content="{$site_seo_title}">
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">   
<link rel="icon" href="__TMPL__Public/images/favicon.ico" type="image/ico">
<link href="__TMPL__Public/style/base.css" rel="stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="__TMPL__Public/style/trade.css"/>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.superslide.2.1.1.js" type="text/javascript"></script>
<script type="text/javascript">
//js无缝滚动代码
function marquee(i, direction){
	var obj = document.getElementById("marquee" + i);
	var obj1 = document.getElementById("marquee" + i + "_1");
	var obj2 = document.getElementById("marquee" + i + "_2");
	if (direction == "up"){
		if (obj2.offsetTop - obj.scrollTop <= 0){
			obj.scrollTop -= (obj1.offsetHeight + 20);
		}else{
			var tmp = obj.scrollTop;
			obj.scrollTop++;
			if (obj.scrollTop == tmp){
				obj.scrollTop = 1;
			}
		}
	}else{
		if (obj2.offsetWidth - obj.scrollLeft <= 0){
			obj.scrollLeft -= obj1.offsetWidth;
		}else{
			obj.scrollLeft++;
		}
	}
}

function marqueeStart(i, direction){
	var obj = document.getElementById("marquee" + i);
	var obj1 = document.getElementById("marquee" + i + "_1");
	var obj2 = document.getElementById("marquee" + i + "_2");

	obj2.innerHTML = obj1.innerHTML;
	var marqueeVar = window.setInterval("marquee("+ i +", '"+ direction +"')", 20);
	obj.onmouseover = function(){
		window.clearInterval(marqueeVar);
	}
	obj.onmouseout = function(){
		marqueeVar = window.setInterval("marquee("+ i +", '"+ direction +"')", 20);
	}
}
</script>
</script>
        <script type="text/javascript" language="javascript">  
        function nofind(){
        var img=event.srcElement;
        img.src="__TMPL__Public/images/no-img.jpg";
        img.onerror=null; 
        }
        </script>
</head>
</head>
<body>
<div id="headnavbg">
    <ul>
	   <li><a href="{:u('list/index',array('id'=>151))}">Путеводитель</a></li>
	   <li><a href="{:u('list/index',array('id'=>152))}">Природа</a></li>
	   <li><a href="{:u('list/index',array('id'=>153))}">Кухни мира</a></li>
	   <li><a href="{:u('list/index',array('id'=>154))}">Обычаи и нравы</a></li>
	   <li><a href="{:u('list/index',array('id'=>155))}">Достопримечательности</a></li>
	</ul>
</div>
<div class="back">
	<div class="banner">
		<div id="marquee1" class="marqueeleft">
			<div style="width:8000px;">
				<ul id="marquee1_1">
					<li>
						<php>
				    	$trade_all=sp_sql_posts('cid:151,152,153,154,155;field:tid,post_title;limit:9;order:post_date desc');
				    </php>
				    <foreach name="trade_all" item="all">
				    	<a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a>
				    </foreach>
					</li>
				</ul>
				<ul id="marquee1_2"></ul>
			</div>
		</div><!--marqueeleft end-->
		<script type="text/javascript">marqueeStart(1, "left");</script>
	</div>
	<div class="center_one">
		<php>
    $Новости_all=sp_sql_posts('cid:151;field:tid,post_title,post_excerpt,post_date,smeta;limit:1;order:post_date desc');
    </php>
    <foreach name="Новости_all" item="all">
	    <php>
	    $smeta=json_decode($all['smeta'],true);
	    </php>
			<div class="center_text">
				<div>{$all.post_date}</div>
				<div style="color:#39836E; font-size:20px; font-weight:bold;"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></div>
				<div style="color:#0B0C0C; font-size:16px;"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></div>
			</div>
		<div class="center_one_img"><a href="{:U('article/index',array('id'=>$all['tid']))}">
        	<img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="632" height="421">
        </a></div>
    </foreach>
    
	</div>
	<div class="clear"></div>
	<div class="center_lb">
		<ul>
		<php>
    $Деятельность_all=sp_sql_posts('cid:152;field:tid,post_title,post_date,smeta;limit:3;order:post_date desc');
    </php>
    <foreach name="Деятельность_all" item="all">
	    <php>
	    $smeta=json_decode($all['smeta'],true);
	    </php>
					<li style="width: 300px;">
						<div><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        	<img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="299" height="194">
                        </a></div>
						<div><span style="color:#6F777B;">{$all.post_date}</span><br>
							<span style="color:#39836E; font-size:16px; font-weight:bold;">
								<a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a>
							</span>
						</div>
					</li>
    </foreach>
		</ul>
	</div>
	<div class="clear"></div>
	<div class="documents">
		<div class="announcements">
			<div class="announcements_tit"><a href="{:u('list/index',array('id'=>153))}">Кухни мира</a></div>
			<ul>
		<php>
    $мира_all=sp_sql_posts('cid:153;field:tid,post_title,post_date;limit:4;order:post_date desc');
    </php>
    <foreach name="мира_all" item="all">					
				<li><a href="{:U('article/index',array('id'=>$all['tid']))}">
					<span style="color:#39836E; font-size:16px; font-weight:bold;">
						{$all.post_title}
					</span></a><br><span>{$all.post_date}</span></li>
    </foreach>
			</ul>
		</div>
		<div class="consultations">
			<div style="text-align:center; font-size:16px; font-weight:bold; margin-top:5px;"><a href="{:u('list/index',array('id'=>92))}">Спонсорство</a></div>
			<div class="consultations_con">
				<ul>
			<php>
	    $Экспорт_all=sp_sql_posts('cid:154;field:tid,post_title,post_date,smeta;limit:2;order:post_date desc');
	    </php>
    <foreach name="Экспорт_all" item="all">
	    <php>
	    $smeta=json_decode($all['smeta'],true);
	    </php>
					<li style="margin-left:10px;width: 300px;">
						<div>
							<a href="{:U('article/index',array('id'=>$all['tid']))}">
                            <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="299" height="194">
                            </a>
						</div>
						<div>
							<span style="color:#6F777B;">{$all.post_date}</span><br>
							<span style="color:#39836E; font-size:16px; font-weight:bold;">
								<a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a>
							</span>
						</div>
					</li>
    </foreach>
				</ul>
			</div>
			<div style="float:right; width:610px; padding-top:20px;">
				<ul>
					<php>
	    $Экспорт_all=sp_sql_posts('cid:155;field:tid,post_title;limit:5;order:post_date desc');
	    </php>
    <foreach name="Экспорт_all" item="all"></php>
					<li style="border-bottom:1px #BFC1C3 solid; height:25px;overflow: hidden;">
						<a href="{:U('article/index',array('id'=>$all['tid']))}">
							<span style="color:#39836E; font-size:16px; font-weight:bold;">{$all.post_title}</span>
						</a><br>
					</li>
    </foreach>
    
				</ul>
			</div>
		</div>
	</div>
	
	<div class="clear"></div>
	<div class="ministers">
		<ul>
						<php>
				    	$trade_all=sp_sql_posts('cid:151,152,153,154,155;field:tid,post_title,post_excerpt,smeta;limit:8;order:post_date desc');
				    </php>
				    <foreach name="trade_all" item="all">
				    <php>
				    $smeta=json_decode($all['smeta'],true);
				    </php>
						<li>
							<div><a href="{:U('article/index',array('id'=>$all['tid']))}">
                            	<img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="218" height="141">
                            </a></div>
							<div><span style="color:#6F777B;">The Rt Hon</span><br>
								<span style="font-size:14px; color:#39836E; font-weight:bold;">
									<a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a>
								</span><br>
								<span style="color:#39836E;">
									<a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a>
								</span>
							</div>
						</li>
				    </foreach>
		</ul>
	</div>
<include file="Public:footer" />
</body>
</html>
